package io.gitee.zhangbinhub.acp.boot.conf

import io.gitee.zhangbinhub.acp.boot.constant.AcpCoreConstant
import org.noear.solon.annotation.Configuration
import org.noear.solon.annotation.Inject

/**
 * Tcp 服务端配置
 */
@Inject(value = $$"${$${AcpCoreConstant.CORS_PREFIX}}", required = false)
@Configuration
class AcpCorsConfiguration {
    var enabled: Boolean = false
    var allowedOrigins: MutableList<String> = mutableListOf()
    var allowedMethods: MutableList<String> = mutableListOf()
    var allowedHeaders: MutableList<String> = mutableListOf()
    var exposedHeaders: MutableList<String> = mutableListOf()
    var allowCredentials: Boolean = true
    var maxAge: Int = 3600
}
